{% extends 'trp/base.html'%}
{% block content %}
<!-- 组织管理——管理员 -->
<div class="pageheader">
	<a class="btn-create" href="javascript:;"><span class="glyphicon glyphicon-plus"></span>新增组织</a>
    <div class="searchbox pull-right">
        <label>搜索<input id="term" class="searchbox-ipt" placeholder="按名称模糊搜索" type="text"></label>
        <a class="searchbox-btn" href="javascript:;"></a>
    </div>
    <div class="dropbox pull-right">
	    <select name="orgtype" style="width:150px;" placeholder="按组织类型搜索">
	    	<option></option>
	    	<option value="">全部类型</option>
			<option value="0">平台</option>
			<option value="1">供应商</option>
			<option value="2">商铺</option>
	    </select>
    </div>
</div>
<div class="pagebox">
	<table id="organizationList" class="grid" width="100%">
	    <thead>
	        <tr>
	            <th>组织名称</th>
	            <th>联系方式</th>
	            <th>组织类型</th>
	            <th>站内账户余额</th>
	            <th>站外账户余额</th>
	            <th>联盟账户余额</th>
	            <th>描述</th>
	            <th minwidth="100">操作</th>
	        </tr>
	    </thead>
	    <tbody>
	    	<tr><td colspan="8" class="loading">&nbsp;</td></tr>
	    </tbody>
	</table>
</div>
<input type="hidden" name="charge_seq"/>
<div class="pop-form form-group pop-inofedit" style="display:none;">
	<form class="infoForm">
		<div class="form_item">
			<label class="form_label">组织名称：</label>
			<div class="form_ctrl">
				<input type="text" name="name" class="form-control" placeholder="请填写名称..." style="float:left;width:227px;"/>
			</div>
		</div>
		<div class="form_item">
			<label class="form_label">联系方式：</label>
			<div class="form_ctrl">
				<input type="text" name="contact" class="form-control" placeholder="请填写联系方式..." style="float:left;width:227px;"/>
			</div>
		</div>
		<div class="form_item">
			<label class="form_label">组织类型：</label>
			<div class="form_ctrl">
				<input type="text" name="type" class="form-control" placeholder="组织类型" style="float:left;width:227px;" readonly/>
			</div>
		</div>
		<div class="form_item" style="height:auto;">
			<label class="form_label">描述：</label>
			<div class="form_ctrl">
				<textarea type="text" name="description" class="form-control" placeholder="请填写描述..." style="float:left;width:227px;height:100px;"></textarea>
			</div>
		</div>
	</form>
</div>
<div class="pop-form form-group pop-recharge" style="display:none;">
	<form class="infoForm">
		<div class="form_item hasunit">
			<label class="form_label">站内充值金额：</label>
			<div class="form_ctrl">
				<input type="text" name="in_balance" class="form-control" placeholder="请填写金额..." style="float:left;width:227px;"/>
			</div>
		</div>
		<div class="form_item hasunit">
			<label class="form_label">站外充值金额：</label>
			<div class="form_ctrl">
				<input type="text" name="out_balance" class="form-control" placeholder="请填写金额..." style="float:left;width:227px;"/>
			</div>
		</div>
		<div class="form_item hasunit">
			<label class="form_label">联盟充值金额：</label>
			<div class="form_ctrl">
				<input type="text" name="ally_balance" class="form-control" placeholder="请填写金额..." style="float:left;width:227px;"/>
			</div>
		</div>
	</form>
</div>

<div class=" pop-form form-group pop-createorg" style="display:none;">
	<form class="infoForm">
		<div class="form_item">
			<label class="form_label">组织名称：</label>
			<div class="form_ctrl">
				<input type="text" name="name" class="form-control required" placeholder="请填写名称..." style="width:227px;"/>
			</div>
		</div>
		<div class="form_item">
			<label class="form_label">联系方式：</label>
			<div class="form_ctrl">
				<input type="text" name="contact" class="form-control" placeholder="请填写联系方式..." style="float:left;width:227px;"/>
			</div>
		</div>
		<div class="form_item hasunit">
			<label class="form_label">组织类型：</label>
			<div class="form_ctrl">
				<input type="text" name="type" class="required" style="width:227px;" placeholder="请选择组织类型" />
			</div>
		</div>
		<div class="form_item" style="height:auto;">
			<label class="form_label">描述：</label>
			<div class="form_ctrl">
				<textarea type="text" name="description" class="form-control" placeholder="请填写描述..." style="float:left;width:227px;height:100px;"></textarea>
			</div>
		</div>
	</form>
</div>


<script>seajs.use('trp/js/organization');</script>
{% endblock %}